import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'
import store from './store'

//创建实例
const app = createApp(App)

//引用插件
app.use(store).use(router).use(ElementPlus)

// 注册全局组件
for(const Icon in Icons){
    if(Reflect.has(Icons, Icon)){
        const item = Icons[Icon]
        app.component(Icon, item)
    }
}



app.mount('#app')